<div [formGroup]="form">
    <json-editor #editor [options]="editorOptions" [formControlName]="data"></json-editor>
</div>